﻿using System;
using System.ComponentModel.Composition;
using ModularAndPlugin.Core.Composition;
using ModularAndPlugin.WinApp.Contracts;
using SailHero.Soft.FrameWork.IDomainRepositories.Contracts;
using UI.WinForm.Common;

namespace UI.WinForm
{
    public partial class ExampleForm : BaseForm
    {

        private static ISys_UserRepository _sys_U;

        [Import]
        public ISys_UserRepository sys_UserRepository
        {
            get { return _sys_U; }
            set { _sys_U = value; }
        }
        public ExampleForm()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            var ss = sys_UserRepository;
        }
        [CommandAttibute("ShowExample")]
        public void ShowExample()
        {
            ExampleForm exm = new ExampleForm();
            IHost hst = Program._modHandler.Host;
            hst.showForm(exm);
        }
    }
}
